package close.mazegame.entity.mob.behaviour;

import com.badlogic.gdx.math.Vector2;

import close.mazegame.entity.mob.AITank;

public abstract class TargetBehaviour extends Behaviour {

	protected Vector2 target;

	public TargetBehaviour(AITank mob) {
		super(mob);
		target = new Vector2(mob.getPosition());
	}
	
	public Vector2 getTargetDirection(){
		Vector2 dir = new Vector2(0, 0);
		dir.x = (target.x - mob.getX());
		dir.y = (target.y - mob.getY());
		return dir.nor();
	}

	public abstract void setTarget();
	
	public Vector2 getTarget(){
		return target;
	}
	
	@Override
	public float getTargetTurrentAngle() {
		return 0;
	}

}
